package org.example.projecttwo.entity.dto.content.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "评论查询DTO，用于多条件筛选评论")
public class CommentQueryDTO {

    @Schema(description = "内容类型：1-文章，2-新闻（可选）", example = "1")
    private Integer contentType;

    @Schema(description = "被评论的内容ID（可选）", example = "2001")
    private Long contentId;

    @Schema(description = "评论用户ID（可选）", example = "1001")
    private Long userId;

    @Schema(description = "评论状态：0-正常，1-已删除（可选，默认查询正常状态）", example = "0")
    private Integer status;

    @Schema(description = "评论内容关键词（可选）", example = "见解")
    private String keyword;

    @Schema(description = "开始时间（创建时间范围查询，可选）", example = "2023-10-01 00:00:00")
    private String startTime;

    @Schema(description = "结束时间（创建时间范围查询，可选）", example = "2023-10-31 23:59:59")
    private String endTime;

    @Schema(description = "父评论ID，用于查询指定评论的回复（可选）", example = "3001")
    private Long parentId;
}